package es.deusto.ingenieria.sd.tralala.server.data;

import java.util.ArrayList;
import java.util.List;
/*
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.Join;
import javax.jdo.annotations.Key;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
*/
//@PersistenceCapable
public class User {
	//@PrimaryKey
	//@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private int id;
	//@Key
	private String name;

	//@Join
	private java.util.List<Play> playU = new ArrayList<Play>();

	public User(String name,
			List<Play> playU) {
		super();
		this.name = name;
		this.playU = playU;
	}

	public User() {
		super();
	}

	public User(int id, String name) {
		super();
		this.id = id;
		this.name = name;

	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void Play(Play play) {
		playU.add(play);
	}
	/*
	 * public void inserMember() {
	 * 
	 * } public void updateMember() {
	 * 
	 * } public void
	 */
}
